function f = mle_overall(v,g)
s = v(1);
n = v(2);
o = v(3);
e = v(4);
d = v(5);
i = [12 11 10 9 8 7 6 5 4 3 2 1 0];
f = -1*log(prod((factorial(12)./(factorial(i).*factorial(12-i)).*(s.*(1-e).^i.*e.^(12-i) + n.*0.5.^i.*0.5.^(12-i) + o.*d.^i.*(1 - d).^(12-i))).^g));
end